package com.example.excel.alibaba;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
public class HelloController {
    @Autowired
    private ExcelExportService excelExportService;

    @GetMapping("/h")
    public void h(HttpServletResponse response) throws IOException {
        excelExportService.excelExport(response);
    }
}

